from django.contrib import admin
from MacGyver.cookbook.models import Category, Item, Recipie

class CategoryAdmin(admin.ModelAdmin):
	list_display = ('name',)
	
class ItemAdmin(admin.ModelAdmin):
	list_display = ('name',)


class RecipieAdmin(admin.ModelAdmin):
	list_display = ('name', )
	search_fields = ('name',)
	filter_horizontal = ('categories', 'items', )

class RecipieItemAdmin(admin.ModelAdmin):
	pass;
	
	
admin.site.register(Category, CategoryAdmin)
admin.site.register(Item, ItemAdmin)
admin.site.register(Recipie, RecipieAdmin)
